package cn.bdqn.pn.service.user;

import cn.bdqn.pn.pojo.user.Resource;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ResourceService {
    Page<Resource> selectResource(Integer pageNo, Integer pageSize); //查询角色信息

    void addResource(Resource resource);//新增角色

    void updateResource(Resource resource);//修改角色

    void deleteResource(Integer resourceid);//删除代理商

    Resource findResourceById(Integer resourceid);//根据id查询

    List<Resource> selectAll();
}
